﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        static void Main(string[] args)
        {
            laohu laohu = new laohu();
            laohu.tui = 4;
            laohu.tou = 1;
            laohu.chi();
            laohu.shui();
            laohu.jiao();
            laohu.dong();
            laohu.yeshi();
            laohu.bianshen();

            Console.WriteLine("------------------");

            mao mao = new mao();
            mao.tui = 4;
            mao.tou = 1;
            mao.chi();
            mao.shui();
            mao.jiao();
            mao.dong();
            mao.yeshi();
            mao.zhualaoshu();

            Console.WriteLine("------------------");

            laoying laoying = new laoying();
            laoying.tui = 2;
            laoying.tou = 1;
            laoying.chi();
            laoying.shui();
            laoying.jiao();
            laoying.dong();
            laoying.fei();
            laoying.kuiyin();

            Console.WriteLine("------------------");
            wuya wuya = new wuya();
            wuya.tui = 2;
            wuya.tou = 1;
            wuya.chi();
            wuya.shui();
            wuya.jiao();
            wuya.dong();
            wuya.fei();
            wuya.ya();
            Console.WriteLine();
            Console.WriteLine("------------------");
            Console.WriteLine("欢迎来到宝可梦宠物店，请问你要寄存什么宠物呢？ 1、猫  2、老虎  3、乌鸦  4、老鹰");
            int x = int.Parse(Console.ReadLine());
            dongwu a;
            switch (x)
            {
                case 1:
                    a = new mao();
                    break;
                case 2:
                    a = new laohu();
                    break;
                case 3:
                    a = new wuya ();
                    break;
                case 4:
                    a = new laoying ();
                    break;
                default:
                    Console.WriteLine("别乱搞嗷！");
                    a = new laohu();
                    break;
            }
            chongwushangdian cwsd = new chongwushangdian();
            cwsd.jiyangchongwu(a);
        }
    }
}
